package com.zxy.feignclient;

import org.springframework.stereotype.Component;

/**
 * @author: Zxy
 * @Date: 2021-06-11
 **/
// 自定义的Hystrix的默认备选方案
@Component
public class HystrixClientImpl implements HystrixClient {
    @Override
    public String demo(Integer id) {
        return "服务过于火爆，请稍后重试";
    }
}
